package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.zcgl.entity.AssetInfoSub;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 资产明细
 * @Author: jeecg-boot
 * @Date: 2020-06-19
 * @Version: V1.0
 */
public interface AssetInfoSubMapper extends BaseMapper<AssetInfoSub> {

    /**
     * 逻辑删除
     *
     * @param mainId
     * @return
     */
    public boolean deleteByMainId(@Param("mainId") String mainId);


    /**
     * 物理删除
     *
     * @param mainId
     * @return
     */
    public boolean deletePhysicalByMainId(@Param("mainId") String mainId);

    public List<AssetInfoSub> selectByMainId(@Param("mainId") String mainId);

    Integer selectCountByRoomStatus(@Param("status") Integer status, @Param("assetInfoId") String assetInfoId);

    BigDecimal queryTotalAreaByIds(@Param("ids") String ids);

    int selectCountByMainId(@Param("mainId") String mainId);

}
